package xyz.k1998.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Controller
public class HelloController {

    @GetMapping("/hello/{id}")
    public String hello(@PathVariable("id") Integer id){
        if(id>5){
            return "a1";
        }else{
            return "a2";
        }

    }
}
